package color.koitq.picker.activty;

import android.content.Intent;

import color.koitq.picker.R;
import color.koitq.picker.base.BaseActivity;
import color.koitq.picker.view.PrivacyDialog;


public class StartActivity extends BaseActivity {

    @Override
    protected int getContentViewId() {
        return R.layout.activity_start_ui;
    }

    @Override
    protected void init() {
        boolean isFirst = PrivacyDialog.showPrivacy(this, new PrivacyDialog.OnClickBottomListener() {
            @Override
            public void onPositiveClick() {
                startActivity(new Intent(activity,LauncherActivity.class));
                finish();
            }

            @Override
            public void onNegtiveClick() {
                finish();
            }
        });
        if (!isFirst) {
            startActivity(new Intent(this,LauncherActivity.class));
            finish();
        }
    }
}
